How to find position vector of a point